﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Win32;

namespace PCDoctor.Utils
{
    class SimpleRegistry
    {
        public static RegistryKey getSettingsKey()
        {
            RegistryKey hauberk = Registry.LocalMachine.OpenSubKey("Software\\Hauberk Software", true);
            if (hauberk == null)
            {
                hauberk = Registry.LocalMachine.CreateSubKey("Software\\Hauberk Software");
            }
            RegistryKey settingsKey = Registry.LocalMachine.OpenSubKey("Software\\Hauberk Software\\PCDoctor", true);
            if (settingsKey == null)
            {
                settingsKey = Registry.LocalMachine.CreateSubKey("Software\\Hauberk Software\\PCDoctor");
            }
            return settingsKey;
        }
    }
}
